package com.cheyunkeji.er.http;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by Michael on 2017/4/10 16:47.
 */

public class Resp<T> implements Serializable {


    @SerializedName("code")
    public int code ;

    @SerializedName("msg")
    public String msg ;

    @SerializedName("data")
    public T data ;

    @SerializedName("rows")
    public int rows ;


    @Override
    public String toString() {
        return "Resp{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                ", rows=" + rows +
                '}';
    }

    /**
     * 请求返回值——成功
     */
    public static final int RESPONSE_SUCCESS = 1 ;

    /**
     * 请求返回值——失败
     */
    public static final int RESPONSE_FAIL = 0 ;
}
